<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so" action="{:U('')}" method="get">

          <input type="text" value="{:I('nickname')}" name="nickname"  placeholder="请输入用户昵称" autocomplete="off" class="layui-input">
          <button class="layui-btn"   type="submit" ><i class="layui-icon">&#xe615;</i></button>
          <button class="layui-btn"   type="reset" >清空</button>
        </form>
      </div>
      <xblock style="height:38px; line-height:38px;">
        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>ID</th>
            <th style="width:90px;">昵称</th>
            <th>头像</th>
            <th>姓名</th>
            <th>手机</th>
            <th>是否团长</th>
            <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
          <tr>
            <td>{$vo['id']}</td>
            <td>{$vo['nickname']}</td>
            <td><img src="{$vo['head']}" style="width: 40px"></td>
            <td>{$vo['name']}</td>
            <td>{$vo['mobile']}</td>
            <td><if condition='$vo.is_tuan eq 1'>否<else/>是</if></td>
            <td class="td-manage">
              <a title="选取"  class="layui-btn layui-btn-xs layui-btn-normal" onclick="setvalue({$vo['id']},'{$vo['nickname']}');" href="javascript:;">
                选取
              </a>			                           
            </td>
          </tr>
        </volist>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
    <script>


       /*设置父页面指定组件的值*/
      function setvalue(id,name){
    	  var parentId=parent.$("#uid").val(id);
    	  var parentId=parent.$("#tuan_nickname").val(name);
    	  //var parentMethodValue=parent.getMethodValue();//访问父页面方法
    	  var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
    	  parent.layer.close(index);//关闭弹出的子页面窗口
    	  //parent.location.reload(); // 父页面刷新
      }


    </script>

<include file="Public/footer"/>

